<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>解决方案列表页</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }
        
        li {
            list-style: none;
        }
        
        img {
            vertical-align: top;
        }
        
        input {
            outline: none;
        }
        
        a {
            text-decoration: none;
        }
        
        body {
            background-color: #f0f1f1;
        }
        /* 版心 */
        
        .head-con,
        .content-con,
        .banner-con,
        .liebiao,
        .noe-con,
        .banner-ul,
        .footer-con {
            width: 1100px;
            margin: 0 auto;
        }
        /* 头部 */
        
        .head {
            width: 100%;
            height: 50px;
            background-color: #323232;
        }
        
        .head-con {
            height: 50px;
        }
        
        .left {
            width: 180px;
            height: 116px;
            position: absolute;
            z-index: 1;
            float: left;
        }
        
        .head-con ul {
            margin-left: 210px;
            width: 520px;
            height: 50px;
            float: left;
        }
        
        .head-con li {
            width: 85px;
            height: 50px;
            font-size: 13px;
            color: #a6a6a6;
            line-height: 50px;
            text-align: center;
            cursor: pointer;
            float: left;
        }
        
        .head-con ul li a {
            color: #a6a6a6;
            text-decoration: none;
        }
        
        .head-con li:hover {
            color: #fff;
            background-color: #dd4012;
        }
        
        .right {
            width: 270px;
            height: 18px;
            margin-top: 15px;
            float: right;
        }
        /* 通栏 */
        
        .banner {
            width: 100%;
            height: 220px;
            background: url(img/3/2.png) no-repeat;
            background-size: cover;
            position: relative;
        }
        
        .bannertext {
            margin-left: 210px;
            font-size: 45px;
            font-weight: bold;
            color: #6f6f6f;
            padding-top: 50px;
        }
        
        .nav1 {
            width: 100%;
            height: 30px;
            background-color: rgba(0, 0, 0, 0.4);
            position: absolute;
            bottom: 0;
        }
        
        .banner-ul {
            height: 100%;
        }
        
        .banner-ul li a {
            font-size: 13px;
            line-height: 30px;
            color: #a6a6a6;
            float: left;
        }
        
        .liebiao {
            background-color: #f0f1f1;
            padding-top: 30px;
            position: relative;
        }
        
        .xin {
            position: absolute;
            margin-top: 30px;
        }
        
        .liebiaoxiang1 {
            width: 1050px;
            height: 117px;
            margin-bottom: 20px;
        }
        
        .liebiao-l {
            width: 80px;
            height: 115px;
            float: left;
            font-size: 15px;
            margin-right: 30px;
            border-top: 2px solid #c0bebe;
            position: relative;
        }
        
        .xin {
            position: absolute;
            top: 0;
        }
        
        .liebiao-l p {
            margin: 14px 0 10px 0;
            text-align: center;
        }
        
        .liebiao-r {
            width: 920px;
            height: 115px;
            float: left;
            margin-left: 8px;
            border-top: 2px solid #c0bebe;
        }
        
        h3 {
            font-size: 28px;
            font-weight: bold;
            margin-bottom: 34px;
            text-align: center;
        }
        
        .liebiao-r img {
            margin-top: 14px;
            margin-right: 15px;
            float: left;
        }
        
        .liebiao-r-t {
            width: 675px;
            height: 115px;
            float: right;
        }
        
        h5 {
            font-size: 12px;
            margin-top: 14px;
            margin-bottom: 14px;
            color: red;
        }
        
        h6 {
            font-size: 12px;
            margin-bottom: 14px;
            color: black;
        }
        
        .liebiao-r-t p {
            font-size: 10px;
            line-height: 18px;
            color: black;
        }
        
        .noe {
            width: 100%;
            height: 50px;
        }
        
        .noe ul {
            margin-left: 370px;
        }
        
        .noe ul li {
            width: 38px;
            height: 38px;
            line-height: 50px;
            border: 1px solid black;
            float: left;
            list-style: none;
            text-align: center;
            line-height: 38px;
            margin-right: 5px;
            background-color: #FFFFFF;
        }
        
        .noe ul li:hover {
            background-color: #dd4012;
        }
        /* 尾部 */
        
        .footer {
            width: 100%;
            height: 82px;
            background-color: black;
        }
        
        .footer-con img {
            width: 166px;
            height: 35px;
            margin-top: 25px;
        }
        
        .footer-right {
            width: 660px;
            float: right;
        }
        
        .footer-right p {
            font-size: 13px;
            line-height: 22px;
            color: #999999;
            float: right;
        }
        
        .footer-right p:nth-of-type(1) {
            margin: 20px 0 5px 0;
        }
    </style>
</head>

<body>
    <!-- 头部 -->
    <div class="head">
        <div class="head-con">
            <img src="img/1/logo.png" alt="" class="left">
            <ul>
                <li>
                    <a href="index.html">网站首页</a>
                </li>
                <li><a href="">传悦资源</a></li>
                <li><a href="anli-liebiaoye.html">传悦案例</a></li>
                <li><a href="">传悦服务</a></li>
                <li><a href="jiejuefangan-liebiaoye.html">解决方案</a></li>
                <li><a href="">需求提交</a></li>
            </ul>
            <img src="img/1/1.2.png" alt="" class="right">
        </div>
    </div>
    <div class="banner">
        <div class="banner-con">
            <div class="bannertext">VIEWPOINT 传悦观点</div>
        </div>
        <div class="nav1">
            <ul class="banner-ul">
                <li><a href="index.html">网站首页&nbsp;&nbsp;</a></li>
                <li><a href="anli-liebiaoye.html">传悦案例</a></li>
            </ul>
        </div>

    </div>
    <div class="liebiao">
        <img src="img/3/新.png" alt="" class="xin">
    </div>
    <div class="liebiaoxiang1" id="copy" style="display: none;">
        <div class="liebiao-l">
            <p class="data"></p>
            <h3 class="day"></h3>
        </div>
        <div class="liebiao-r">
            <img src="" alt="" class="tupian">
            <a class="liebiao-r-t" href="">
                <h5 class="title1"></h5>
                <h6 class="title2"></h6>
                <p class="text">
                </p>
            </a>
        </div>
    </div>
    <div class="noe">
        <div class="noe-con">
            <ul>
                <li>
                    <</li>
                        <li>1</li>
                        <li>2</li>
                        <li>3</li>
                        <li>4</li>
                        <li>></li>
            </ul>
        </div>
    </div>

    <!-- 尾部 -->
    <div class="footer">
        <div class="footer-con">
            <img src="img/1/4.1.png" alt="">
            <div class="footer-right">
                <p>关于传悦&nbsp;&nbsp;&nbsp;&nbsp;新闻动态&nbsp;&nbsp;&nbsp;&nbsp;传悦观点&nbsp;&nbsp;&nbsp;&nbsp;联系传悦&nbsp;&nbsp;&nbsp;&nbsp;加入传悦&nbsp;&nbsp;&nbsp;&nbsp;付款账户</p>
                <p>Copyri ght 2013 创梦网络科技有限责任公司 || 传悦 Chnyoo.cn All Ri ghts Reserved 京ICP备12005221号</p>
            </div>
        </div>
    </div>
    <script>
        let http = new XMLHttpRequest()
        http.open("get", "http://10.35.164.110:81/jiejuefanganbiao")
        http.send()
        http.onreadystatechange = function() {
            if (http.readyState === 4) {
                console.log(http.responseText);
                let liebiao1 = JSON.parse(http.responseText);
                let copy = document.getElementById("copy");
                console.log(copy);

                let liebiao = document.getElementsByClassName("liebiao")[0];
                console.log(liebiao);

                liebiao1.forEach(function(item) {
                    let newItem = copy.cloneNode(true);
                    newItem.id = "";
                    newItem.className = "liebiaoxiang1";
                    newItem.style.display = "block";
                    liebiao.appendChild(newItem);
                    newItem.querySelector(".data").innerHTML = item.data;
                    newItem.querySelector(".day").innerHTML = item.day;
                    newItem.querySelector(".tupian").src = item.tupian;
                    newItem.querySelector(".title1").innerHTML = item.title1;
                    newItem.querySelector(".title2").innerHTML = item.title2;
                    newItem.querySelector(".text").innerHTML = item.text;
                    newItem.setAttribute("data-id", item.id);
                    let newid = newItem.getAttribute("data-id");
                    newItem.querySelector("a").href = `http://10.35.164.110:81/jiejuefanganbiao1?id=${newid}`;
                })
            }
        }
    </script>
</body>

</html>